<?php

namespace app\system\controller;

use app\BaseController;
use think\facade\View;

class Article extends BaseController
{

    //index首页说明页面
    public function index($type)
    {
        $model = new \app\admin\model\system\SystemArticle();
        $row = $model->where('type', $type)->order('id', 'desc')->find();
        View::assign('content', $row->content);
        return View::fetch();
    }
   
}